package com.teatime.client;

import org.apache.http.client.CookieStore;
import org.apache.http.impl.client.BasicCookieStore;

import com.teatime.client.activity.TActivityManager;

import android.app.Application;

public class TeaTimeApp extends Application {

	private CookieStore mCookieStore;
	private boolean mIsBusLogin = false;
	private String  mUserName = null;
	private TActivityManager mActivityManager;
	
	@Override
	public void onCreate() {
		mActivityManager = new TActivityManager();
	}
	
	public CookieStore getCookieStore() {
		if (mCookieStore == null) {
			mCookieStore = new BasicCookieStore();
		}
		
		return mCookieStore;
	}
	
	public boolean isBusLogin() {
		return mIsBusLogin;
	}
	
	public void setIsBusLogin(boolean b) {
		mIsBusLogin = b;
	}
	
	public String getUserName() {
		return mUserName;
	}
	
	public void setUserName(String userName) {
		mUserName = userName;
	}
	
	public TActivityManager getActivityManager() {
		return mActivityManager;
	}
}
